package com.runa.monitor.platinterface.extend.nb.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: lyd
 * @Description:
 * @Date: 2021/8/2 9:43
 * @Version: 1.0
 */
@Configuration
public class NewMqttNbIotConfig {
    @Value("${newmqtt.enable:false}")
    private Boolean enable;
//    private Boolean enable = true;

    /**
     * 租户id
     */
    @Value("${newmqtt.tenantId:''}")
    private String tenantId;
    /**
     * 身份认证token
     */
    @Value("${newmqtt.token:''}")
    private String token;

    /**
     * 消息服务地址
     */
    @Value("${newmqtt.serverUrl:''}")
    private String serverUrl;

    /**
     * 数据上传主题
     */
    @Value("${newmqtt.dataTopic:''}")
    private String dataTopic;
//    private String dataTopic = "rui_panel-dev";
    /**
     * appKey
     */
    @Value("${newmqtt.appKey:''}")
    private String appKey;
    /**
     * appSecret
     */
    @Value("${newmqtt.appSecret:''}")
    private String appSecret;
    /**
     * 小瑞面板产品id
     */
    @Value("${newmqtt.ruiPanelProductId:''}")
    private String ruiPanelProductId;
//    private String ruiPanelProductId = "15002405";
    /**
     * 小瑞面板masterKey
     */
    @Value("${newmqtt.ruiPanelMasterKey:''}")
    private String ruiPanelMasterKey;
//    private String ruiPanelMasterKey = "f50273530e0c41548447b9ccd89fb1cf";

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getDataTopic() {
        return dataTopic;
    }

    public void setDataTopic(String dataTopic) {
        this.dataTopic = dataTopic;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getRuiPanelProductId() {
        return ruiPanelProductId;
    }

    public void setRuiPanelProductId(String ruiPanelProductId) {
        this.ruiPanelProductId = ruiPanelProductId;
    }

    public String getRuiPanelMasterKey() {
        return ruiPanelMasterKey;
    }

    public void setRuiPanelMasterKey(String ruiPanelMasterKey) {
        this.ruiPanelMasterKey = ruiPanelMasterKey;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
}
